package jiekou3;

public class Test {
    /*public void attack(Attack attack){
        attack.attack();
    }
    public void Defend(Defend defend){
        defend.defend();
    }
    public void Hunt(Hunt hunt){
        hunt.hunt();
    }
    public void Mine(Mine mine){
        mine.mine();
    }
    public void Rob(Rob rob){
        rob.rob();
    }
    public void SelfIntroduce(SelfIntroduce selfIntroduce){
        selfIntroduce.selfIntroduce();
    }
    public void Treat(Treat treat){
        treat.treat();
    }*/
    public static void main(String[] args) {
        Robber robber = new Robber("偷心盗贼", 100);
        Hunter hunter = new Hunter("时空猎人", 101);
        Doctor doctor = new Doctor("奶妈医生", 102);
        Farmer farmer = new Farmer("无敌农民", 103);
        Soldier soldier = new Soldier("无名士兵", 104);
        robber.selfIntroduce();
        robber.attack();
        robber.rob();
        hunter.selfIntroduce();
        hunter.attack();
        hunter.hunt();
        doctor.selfIntroduce();
        doctor.treat();
        farmer.selfIntroduce();
        farmer.attack();
        farmer.mine();
        farmer.treat();
        soldier.selfIntroduce();
        soldier.defend();

    }
}
